<template>
<div>
  <div  class="container">
     <div class="title">    
        <h2 class="smallTitle">
          <i class="el-icon-s-home"></i>
          <span>房产经纪</span>
        </h2>
    </div>
    <div class="bigTP">
        <!-- 主题 -->
        <!-- <div class="daziji">
          <daziji></daziji>
        </div> -->
        <h1>找经纪人找服务</h1>
        <div class="btn">查看全部经纪人</div>
    </div>
    <!-- 小标题 -->
   
    <!-- 主体 -->
      <div class="main">
        <!-- 主题小标题 -->
        <h3>
          <img src="https://pages.anjukestatic.com/usersite/site/img/icon/wuyou.png" alt="" class="head-icon">
          <span>无忧交易经纪人</span>
        </h3>
        <div class="row">
          <a href="#" v-for="item in agentData" :key="item.id">
          <!-- 左边图片 -->
          <img :src="item.image" alt="">
          <!-- 右边简介 -->
          <div class=main_left>
            <!-- 名字 -->
            <h2>{{item.name}}</h2>
            <p>地址：{{item.address}}</p>
            <p>电话：{{item.phone}}</p>
            <p>邮箱：{{item.email}}</p>
            <p>描述：{{item.desc}}</p>
          </div>
        </a>
        </div>
      </div>
      <footer>
        <div class="footer-head">
          <p>老六之家广州房地产经纪人排行榜频道提供广州房地产中介顾问，为您寻找投资咨询服务专家，产权核验服务专家，过户代办服务专家，和业界好评的经纪人。找房产经纪人就上老六之家。</p>
        </div>
        <div class="footer-main">
            <div class="hotAgent">
              <strong>热门经纪人</strong>
              <ul>
                <li v-for="item in arr" :key="item.indxe">
                  <a href="">{{item}}</a>
                </li>
              </ul>
            </div>
            <div class="hotAgent">
              <strong>写字楼出租</strong>
              <ul>
                <li v-for="item in arr1" :key="item.indxe">
                  <a href="">{{item}}</a>
                </li>
              </ul>
            </div>
            <div class="hotAgent">
              <strong>热门中介公司</strong>
              <ul>
                <li v-for="item in arr3" :key="item.indxe">
                  <a href="">{{item}}</a>
                </li>
              </ul>
            </div>
            <div class="hotAgent">
              <strong>推荐城市经纪人</strong>
              <ul>
                <li v-for="item in arr4" :key="item.indxe">
                  <a href="">{{item}}</a>
                </li>
              </ul>
            </div>
            <div class="hotAgent">
              <strong>商铺出租</strong>
              <ul>
                <li v-for="item in arr5" :key="item.indxe">
                  <a href="">{{item}}</a>
                </li>
              </ul>
            </div>
        </div>
      </footer>
  
  
  </div>
   <!-- 底部 -->
    <div class="footPart">
      <div class="footer w">
        <div class="top">
          <div class="introduce">
            <div>
              <img src="" alt="" />
            </div>
            <div>
              <a href="/about">公司介绍</a>
              <a href="/about">专家答疑</a>
              <a href="/about">隐私协议</a>
              <a href="/about">免责声明</a>
              <a href="/about">联系我们</a>
            </div>
          </div>
          <el-divider></el-divider>
          <div class="detail">
            <div class="footer_info">
              <div>
                <span>广州市JENNY房地产代理有限公司</span>
                <span>邮箱：JENNY@six.com</span>
                <span>广东总部：广州市天河区珠吉路津安创意园219号</span>
                <!-- <div>北京道杰士投资咨询服务有限责任公司 | 网络经营许可证 京ICP备13049052号-2 | © Copyright© 2020 Sofang.com, All Rights Reserved |</div> -->
              </div>
              <div class="copyright">
                <span>Copyright ©2001-2022 JENNY HOUSE网版权所有</span>
                <span>粤ICP备11022641号</span>
                <span>粤公网安备 44049002000505号</span>
              </div>
            </div>
            <div class="footer_list">
              <div class="phone">
                <i class="el-icon-phone-outline"></i>
                服务热线：400-168-6666
              </div>
              <div class="timeWork">（周一至周日：8:30 - 18:30）</div>
            </div>
            <div></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { agents } from '@/api/user'
    export default {
      data(){
        return {
          arr:["梁雪儿","李源","何小欢","吕鹏","黄诗亮","李思倩","宁莲"," 林佳現"," 周泳","霖周鑫"," 林锦婷","洪浴","徐小会","钟其祝","陆罡瑜","岁判峰","黄重宪","满书祥","黄志强","陈必华","胡蓉珍","潘乃善","黄奕彬","黄观胜","沈爱华","苏显梅","梁华琴","盛樱男","付永灯","李志浩","邓辉成","李惠芬","英清松","张和贵","叶冠邦"],
          arr1:["北京写字楼出租","成都写字楼出租", "大连写字楼出租" ,"福州写字楼出租" ,"广州州写字楼出粗", "哈尔滨写字楼出租" ,"杭州写字楼出租" ,"合肥写字楼出租" ,"济南写字楼出租" ,"南昌写字楼出租" , "南宁写字楼出租", "青岛写字楼出租" ,"厦门写字楼出租", "上海写字楼出租", "深圳写字楼出祖", "沈阳写字楼出租" ,"石家庄写字楼出租" ,"苏州写字楼","出租太原写字楼出租", "天津写字楼出租" ,"武汉写字楼出租", "西安写字楼出租", "长春写字楼出租", "长沙写字楼出租郑州写字楼出租", "重庆写字楼出租"],
          arr3:["树铭租赁中心" ,"祈安地产兔租房", "简言租房", "潮商实业", "营信物业聚创地产广飘租房"],
          arr4:["大理经纪人", "德州经纪人",  "大庆经纪人", "丹东经纪人", "大同经纪人" ,"达州经纪人", "鄂尔多斯经纪人" ,"恩施经纪人", "鄂州经纪人", "福州经纪人", "佛山经纪人", "阜阳经纪人" ,"抚顺经纪人", "阜新经纪人抚州经纪人" ,"广州经纪人贵阳经纪人" ,"桂林经纪人赣州经纪人"],
          arr5:["北京商铺出租", "成都商铺出租", "大连商铺出租" ,"福州商铺出租" ,"广州商铺出租", "哈尔滨商铺出租" ,"杭州商铺出租", "合肥商铺出租", "济南商铺出租" ,"南昌商铺出租" ,"南京商铺出租", "南宁商铺出租", "青岛商铺出租", "厦门商铺出租", "上海商铺出租", "深圳商铺出租" ,"沈阳商铺出租", "石家庄商铺出租", "苏州商铺出租" ,"太原商铺出租", "天津商铺出租", "武汉商铺出租" ,"西安商辅出租", "长春商铺出租" ,"长沙商捕出租", "郑州商铺出租", "重庆商铺出租"],
          agentData:[]
        }
      },
      created(){
        this.getAgents()
      },
      methods:{
        //获取列表
        async getAgents(){
          const res =await agents()
           this.agentData=res.data
        }
      }
    }
</script>

<style lang="scss" scoped>
.container{
  a {
    text-decoration: none;
    color: black;
  }
    width: 1226px;
    margin: 0 auto;
  .bigTP {
    position: relative;
    .daziji {
      width: 100px;
      height: 50px;
       position: absolute;
      top:20%;
      left:50%;
      transform: translate(-50%,-50%);
    }
    overflow: hidden;
    z-index: -999;
    position: relative;
    h1{
      color: #fff;
      font-weight: 500;
      font-size: 50px;
      position: absolute;
      top:20%;
      left:50%;
      transform: translate(-50%,-50%);
    }
    .btn {
      position: absolute;
      top:40%;
      left:50%;
      width: 200px;
      height: 50px;
      line-height: 50px;
      border-radius: 5px;
      border: 1px solid #fff;
      color: #fff;
      font-size: 20px;
      text-align: center;
      transform: translate(-50%,-50%);
    }
    height: 476px;
    background: url('https://pages.anjukestatic.com/usersite/site/img/broker/bg1.jpg') no-repeat;
    background-size: cover;
  }
  .title {
    height: 80px;
    line-height: 80px;
  .smallTitle {
  color: #87ceeb;
 }
  }
  .main {
    margin-top: -150px;
    h3{
      padding-top:10px ;
      text-align: center;
        background-color: rgba(255, 255, 255, 0.55);


      .head-icon{
        height: 30px;
      vertical-align: bottom;
      margin-right: 8px;
      }
      span {
        font-size: 22px;
        color: #666;
        font-weight: 500;
      }
    }
    .row{

    justify-content: space-around;
     a{
      
    background-color: rgba(255, 255, 255, 0.55);
    &:hover{
        background-color: rgba(51, 51, 51, 0.33);
      }
    overflow: hidden;
      float: left;
      width: 408.5px;
      text-decoration: none;
      display: flex;
      height: 200px;
      // border-bottom: 1px solid #ccc;
      padding-top: 11px;
      padding-left:30px ;
      color:#000;
      img {
        width: 113.63px;
        height: 150px;
        margin-right: 20px;
      }
  
      
      .main_left {
        display: flex;
        flex-direction:column;
        h2 {
          font-weight: 500;
        }
        p {
          margin:2px 10px;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          overflow: hidden;
          -webkit-line-clamp: 2;
        }
      }
    }
    }
   
  }
  footer {
    .footer-head{
      font-size: 10px;
      text-align: center;
      color: #666;
    }
    .footer-main{
      font-size: 12px;
      // height: 1000px;
      border: 1px solid #ccc;
      padding: 20px;
      padding-top: 10px;
      margin-top: 10px;
      .hotAgent {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px dashed #999;
        margin-top: 10px;
        strong {
          width: 130px;
        }
        ul {
          width: 1200px;
          li {
            float: left;
            list-style: none;
            margin-right: 30px;
            margin-bottom: 5px;
            font-size: 14px;
            a {
              color: #666;
      font-size: 12px;

            }
          }
        }
      }
    }
  }
}
  // width: 100%;

  .footer {
  background-color: #292c34;
  // padding-top: 50px;
  .top {
    height: 230px;
    margin-left: 40px;
    margin-right: 40px;
    .introduce {
      height: 100px;
      line-height: 35px;
      // background-color: #0097ff;
      font-size: 18px;
      a {
        color: #fff;
        margin-left: 40px;
      }
    }
    .detail {
      display: flex;
      justify-content: space-between;
      text-align: left;
      color: #888b90;
      margin-top: 20px;
      .footer_info {
        span {
          margin-right: 30px;
        }
        .copyright {
          margin-top: 10px;
        }
      }
      .footer_list {
        .phone {
          font-size: 18px;
          color: #fff;
        }
        .timeWork {
          font-size: 13px;
          margin-left: 35px;
        }
      }
    }
  }
}
.footPart {
  background-color: #292c34;
}
.footer {
  margin-top: 80px;
  height: 230px;
}
.myfooter {
  // position: relative;
  height:230px;
  width: 100%;
  background-color: #292c34;
}
</style>
